<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <title>OpenLayers v8.2.0 API - Class: Map</title>
    <script src="scripts/prettify/prettify.js"></script>
    <script src="scripts/prettify/lang-css.js"></script>
    <script src="https://code.jquery.com/jquery-3.6.0.min.js" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js"
        crossorigin="anonymous"></script>
    <link rel="stylesheet" type="text/css"
        href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" crossorigin="anonymous" />
    <link rel="stylesheet" type="text/css"
        href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1.2/css/fontawesome.min.css"
        crossorigin="anonymous" />
    <link rel="stylesheet" type="text/css"
        href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1.2/css/solid.css" crossorigin="anonymous" />
    <link rel="stylesheet" type="text/css"
        href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1.2/css/brands.css"
        crossorigin="anonymous" />
    <link rel="stylesheet" type="text/css" href="styles/prettify-tomorrow.css" />
    <link rel="stylesheet" type="text/css" href="styles/jaguar.css" />
    <link rel="stylesheet" type="text/css" href="styles/carbon.css" />
    <link rel="stylesheet" type="text/css" href="/theme/ol.css" />
    <link rel="stylesheet" type="text/css" href="/theme/site.css" />
</head>

<body>
    <header class="navbar navbar-expand-sm navbar-dark mb-3 px-3 py-0 fixed-top" role="navigation">
        <a class="navbar-brand" href="/"><img src="/theme/img/logo-dark.svg" width="70" height="70"
                alt="" />&nbsp;OpenLayers</a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#olmenu"
            aria-controls="olmenu" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>

        <!-- menu items that get hidden below 768px width -->
        <nav class="collapse navbar-collapse" id="olmenu">
            <ul class="nav navbar-nav ms-auto">
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="docdropdown" role="button"
                        data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Docs</a>
                    <div class="dropdown-menu dropdown-menu-end mb-3" aria-labelledby="docdropdown">
                        <a class="dropdown-item" href="/doc/">Docs</a>
                        <div class="dropdown-divider"></div>
                        <a class="dropdown-item" href="/doc/quickstart.html"><i
                                class="fa fa-check fa-fw me-2 fa-lg"></i>快速入门</a>
                        <a class="dropdown-item" href="/doc/faq.html"><i
                                class="fa fa-question fa-fw me-2 fa-lg"></i>FAQ</a>
                        <a class="dropdown-item" href="/doc/tutorials/"><i
                                class="fa fa-book fa-fw me-2 fa-lg"></i>Tutorials</a>
                        <div class="dropdown-divider"></div>
                        <a class="dropdown-item" href="https://stackoverflow.com/questions/tagged/openlayers"><i
                                class="fab fa-stack-overflow fa-fw me-2"></i>Ask a Question</a>
                    </div>
                </li>
                <li class="nav-item"><a class="nav-link" href="/en/latest/examples/">Examples</a></li>
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="apidropdown" role="button"
                        data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i
                            class="fa fa-sitemap me-1"></i>API </a>
                    <div class="dropdown-menu dropdown-menu-end mb-3" aria-labelledby="apidropdown">
                        <a class="dropdown-item" href="/en/latest/apidoc/"><i
                                class="fa fa-sitemap fa-fw me-2 fa-lg"></i>v8.2.0 (latest)</a>
                    </div>
                </li>
            </ul>
        </nav>
    </header>

    <div class="container-fluid">
        <div id="wrap" class="row">
            <div class="navigation col-md-4 col-lg-3">
                <div class="search-wrapper">
                    <div class="search">
                        <input id="search" type="text" autocomplete="off" class="form-control input-sm"
                            placeholder="Search Documentation" />
                    </div>
                </div>
                <div class="navigation-list-wrapper">
                    <ul class="navigation-list search-empty">
                        <li class="item item-class toggle-manual toggle-manual-show" data-longname="module:ol/Map~Map"
                            data-name="ol/map">
                            <span class="title toggle">
                                <span class="fa fa-chevron-right me-2 mt-1"></span>
                                <span><a href="module-ol_Map-Map.html">ol​/Map</a></span>
                            </span>
                            <div class="member-list" data-type="methods">
                                <span class="subtitle">Methods</span>
                                <ul>
                                    <li data-name="addcontrol"><a
                                            href="module-ol_Map-Map.html#addControl">addControl</a></li>

                                    <li data-name="addinteraction"><a
                                            href="module-ol_Map-Map.html#addInteraction">addInteraction</a></li>

                                    <li data-name="addlayer"><a href="module-ol_Map-Map.html#addLayer">addLayer</a></li>
                                    <li data-name="addoverlay"><a
                                            href="module-ol_Map-Map.html#addOverlay">addOverlay</a></li>

                                    <li data-name="changed"><a href="module-ol_Map-Map.html#changed">changed</a></li>
                                    <li data-name="dispatchevent"><a
                                            href="module-ol_Map-Map.html#dispatchEvent">dispatchEvent</a></li>

                                    <li data-name="flushdeclutteritems"><a
                                            href="module-ol_Map-Map.html#flushDeclutterItems">flushDeclutterItems</a>
                                    </li>

                                    <li data-name="foreachfeatureatpixel"><a
                                            href="module-ol_Map-Map.html#forEachFeatureAtPixel">forEachFeatureAtPixel</a>
                                    </li>

                                    <li data-name="get"><a href="module-ol_Map-Map.html#get">get</a></li>
                                    <li data-name="getalllayers"><a
                                            href="module-ol_Map-Map.html#getAllLayers">getAllLayers</a></li>

                                    <li data-name="getcontrols"><a
                                            href="module-ol_Map-Map.html#getControls">getControls</a></li>

                                    <li data-name="getcoordinatefrompixel"><a
                                            href="module-ol_Map-Map.html#getCoordinateFromPixel">getCoordinateFromPixel</a>
                                    </li>

                                    <li data-name="geteventcoordinate"><a
                                            href="module-ol_Map-Map.html#getEventCoordinate">getEventCoordinate</a></li>

                                    <li data-name="geteventpixel"><a
                                            href="module-ol_Map-Map.html#getEventPixel">getEventPixel</a></li>

                                    <li data-name="getfeaturesatpixel"><a
                                            href="module-ol_Map-Map.html#getFeaturesAtPixel">getFeaturesAtPixel</a></li>

                                    <li data-name="getinteractions"><a
                                            href="module-ol_Map-Map.html#getInteractions">getInteractions</a></li>

                                    <li data-name="getkeys"><a href="module-ol_Map-Map.html#getKeys">getKeys</a></li>
                                    <li data-name="getlayergroup"><a
                                            href="module-ol_Map-Map.html#getLayerGroup">getLayerGroup</a></li>

                                    <li data-name="getlayers"><a href="module-ol_Map-Map.html#getLayers">getLayers</a>
                                    </li>
                                    <li data-name="getoverlaybyid"><a
                                            href="module-ol_Map-Map.html#getOverlayById">getOverlayById</a></li>

                                    <li data-name="getoverlays"><a
                                            href="module-ol_Map-Map.html#getOverlays">getOverlays</a></li>

                                    <li data-name="getpixelfromcoordinate"><a
                                            href="module-ol_Map-Map.html#getPixelFromCoordinate">getPixelFromCoordinate</a>
                                    </li>

                                    <li data-name="getproperties"><a
                                            href="module-ol_Map-Map.html#getProperties">getProperties</a></li>

                                    <li data-name="getrevision"><a
                                            href="module-ol_Map-Map.html#getRevision">getRevision</a></li>

                                    <li data-name="getsize"><a href="module-ol_Map-Map.html#getSize">getSize</a></li>
                                    <li data-name="gettarget"><a href="module-ol_Map-Map.html#getTarget">getTarget</a>
                                    </li>
                                    <li data-name="gettargetelement"><a
                                            href="module-ol_Map-Map.html#getTargetElement">getTargetElement</a></li>

                                    <li data-name="getview"><a href="module-ol_Map-Map.html#getView">getView</a></li>
                                    <li data-name="getviewport"><a
                                            href="module-ol_Map-Map.html#getViewport">getViewport</a></li>

                                    <li data-name="hasfeatureatpixel"><a
                                            href="module-ol_Map-Map.html#hasFeatureAtPixel">hasFeatureAtPixel</a></li>

                                    <li data-name="on"><a href="module-ol_Map-Map.html#on">on</a></li>
                                    <li data-name="once"><a href="module-ol_Map-Map.html#once">once</a></li>
                                    <li data-name="removecontrol"><a
                                            href="module-ol_Map-Map.html#removeControl">removeControl</a></li>

                                    <li data-name="removeinteraction"><a
                                            href="module-ol_Map-Map.html#removeInteraction">removeInteraction</a></li>

                                    <li data-name="removelayer"><a
                                            href="module-ol_Map-Map.html#removeLayer">removeLayer</a></li>

                                    <li data-name="removeoverlay"><a
                                            href="module-ol_Map-Map.html#removeOverlay">removeOverlay</a></li>

                                    <li data-name="render"><a href="module-ol_Map-Map.html#render">render</a></li>
                                    <li data-name="rendersync"><a
                                            href="module-ol_Map-Map.html#renderSync">renderSync</a></li>

                                    <li data-name="set"><a href="module-ol_Map-Map.html#set">set</a></li>
                                    <li data-name="setlayergroup"><a
                                            href="module-ol_Map-Map.html#setLayerGroup">setLayerGroup</a></li>

                                    <li data-name="setlayers"><a href="module-ol_Map-Map.html#setLayers">setLayers</a>
                                    </li>
                                    <li data-name="setproperties"><a
                                            href="module-ol_Map-Map.html#setProperties">setProperties</a></li>

                                    <li data-name="setsize"><a href="module-ol_Map-Map.html#setSize">setSize</a></li>
                                    <li data-name="settarget"><a href="module-ol_Map-Map.html#setTarget">setTarget</a>
                                    </li>
                                    <li data-name="setview"><a href="module-ol_Map-Map.html#setView">setView</a></li>
                                    <li data-name="un"><a href="module-ol_Map-Map.html#un">un</a></li>
                                    <li data-name="unset"><a href="module-ol_Map-Map.html#unset">unset</a></li>
                                    <li data-name="updatesize"><a
                                            href="module-ol_Map-Map.html#updateSize">updateSize</a></li>
                                </ul>
                            </div>
                            <div class="member-list" data-type="fires">
                                <span class="subtitle">Fires</span>
                                <ul>
                                    <li data-name="change"><a
                                            href="module-ol_events_Event-BaseEvent.html#event:change">change</a></li>

                                    <li data-name="change:layergroup">change:layerGroup</li>
                                    <li data-name="change:size">change:size</li>
                                    <li data-name="change:target">change:target</li>
                                    <li data-name="change:view">change:view</li>
                                    <li data-name="click"><a
                                            href="module-ol_MapBrowserEvent-MapBrowserEvent.html#event:click">click</a>
                                    </li>

                                    <li data-name="dblclick"><a
                                            href="module-ol_MapBrowserEvent-MapBrowserEvent.html#event:dblclick">dblclick</a>
                                    </li>

                                    <li data-name="error"><a
                                            href="module-ol_events_Event-BaseEvent.html#event:error">error</a></li>

                                    <li data-name="loadend"><a
                                            href="module-ol_MapEvent-MapEvent.html#event:loadend">loadend</a></li>

                                    <li data-name="loadstart"><a
                                            href="module-ol_MapEvent-MapEvent.html#event:loadstart">loadstart</a></li>

                                    <li data-name="moveend"><a
                                            href="module-ol_MapEvent-MapEvent.html#event:moveend">moveend</a></li>

                                    <li data-name="movestart"><a
                                            href="module-ol_MapEvent-MapEvent.html#event:movestart">movestart</a></li>

                                    <li data-name="pointerdrag"><a
                                            href="module-ol_MapBrowserEvent-MapBrowserEvent.html#event:pointerdrag">pointerdrag</a>
                                    </li>

                                    <li data-name="pointermove"><a
                                            href="module-ol_MapBrowserEvent-MapBrowserEvent.html#event:pointermove">pointermove</a>
                                    </li>

                                    <li data-name="postcompose"><a
                                            href="module-ol_render_Event-RenderEvent.html#event:postcompose">postcompose</a>
                                    </li>

                                    <li data-name="postrender"><a
                                            href="module-ol_MapEvent-MapEvent.html#event:postrender">postrender</a></li>

                                    <li data-name="precompose"><a
                                            href="module-ol_render_Event-RenderEvent.html#event:precompose">precompose</a>
                                    </li>

                                    <li data-name="propertychange"><a
                                            href="module-ol_Object.ObjectEvent.html#event:propertychange">propertychange</a>
                                    </li>

                                    <li data-name="rendercomplete"><a
                                            href="module-ol_render_Event-RenderEvent.html#event:rendercomplete">rendercomplete</a>
                                    </li>

                                    <li data-name="singleclick"><a
                                            href="module-ol_MapBrowserEvent-MapBrowserEvent.html#event:singleclick">singleclick</a>
                                    </li>
                                </ul>
                            </div>
                        </li>

                        <li class="loading">Loading …</li>
                    </ul>
                </div>
            </div>

            <div class="main col-md-8 col-lg-9">
                <h1 class="page-title" data-filename="module-ol_Map-Map.html">Class: Map</h1>
                <div id="latest-check" class="alert alert-warning alert-dismissible" role="alert" style="display: none">
                    <button id="latest-dismiss" type="button" class="btn-close" data-bs-dismiss="alert"
                        aria-label="Close"></button>
                    本文档适用于OpenLayers v<span id="package-version">8.2.0</span>. The <a id="latest-link" href="#"
                        class="alert-link">latest</a> is v<span id="latest-version"></span>.
                </div>

                <section class="content">
                    <header>
                        <h2 class="my-3">
                            <span class="ancestors"><a href="module-ol_Map.html">ol/Map</a>~</span>Map
                        </h2>
                        <br />

                        <pre
                            class="prettyprint source"><code>import Map from '<a href="module-ol_Map.html">ol/Map</a>.js';</code></pre>

                        <div class="row p-3">
                            <!-- <div id="ad" class="col-lg-5 order-2 align-self-center border rounded bg-light ">
                                <script async type="text/javascript"
                                    src="https://cdn.carbonads.com/carbon.js?serve=CE7DV53U&placement=openlayersorg"
                                    id="_carbonads_js"></script>
                            </div> -->

                            <div class="class-description col-lg-7 align-self-center ps-0">
                                <p>地图是OpenLayers的核心组件。对于要渲染的地图，需要一个视图、一个或多个层和一个目标容器：</p>
                                <pre class="prettyprint source"><code>import Map from 'ol/Map.js';
import View from 'ol/View.js';
import TileLayer from 'ol/layer/Tile.js';
import OSM from 'ol/source/OSM.js';

const map = new Map({
  view: new View({
    center: [0, 0],
    zoom: 1,
  }),
  layers: [
    new TileLayer({
      source: new OSM(),
    }),
  ],
  target: 'map',
});</code></pre>
                                <p>
                                    上面的代码片段使用 <a href="module-ol_layer_Tile-TileLayer.html"><code>TileLayer</code></a>
                                    创建了一个地图来显示<a href="module-ol_source_OSM-OSM.html"><code>OSM</code></a> OSM
                                    数据，并将其呈现给一个id为 <code>map</code>的DOM元素。
                                </p>
                                <p>
                                    构造器在目标元素中放置一个viewport容器(CSS类名为 <code>ol-viewport</code>) (参见
                                    <code>getViewport()</code>), 然后在viewport中放置另外两个元素:一个CSS类名为
                                    <code>ol-overlaycontainer-stopevent</code> 用于控件和一些覆盖层，另一个CSS类名为
                                    <code>ol-overlaycontainer</code>用于其他覆盖层(参见 <a
                                        href="module-ol_Overlay-Overlay.html"><code>Overlay</code></a>的
                                    <code>stopEvent</code>选项了解差异). 地图本身被放置在视口中的另一个元素中。
                                </p>
                                <p>
                                    图层以<a href="module-ol_Collection-Collection.html"><code>集合</code></a>的形式存储在
                                    layerGroups中。库提供了一个顶级组。可通过<code>getLayerGroup</code>和<code>setLayerGroup</code>访问。在选项中输入的图层被添加到该组中，
                                    <code>addLayer</code>和<code>removeLayer</code> 会更改该组中的图层集合。 <code>getLayers</code>是
                                    <code>getLayerGroup().getLayers()</code>的一个方便函数。请注意， <a
                                        href="module-ol_layer_Group-LayerGroup.html"><code>LayerGroup</code></a> 是 <a
                                        href="module-ol_layer_Base-BaseLayer.html"><code>BaseLayer</code></a>的子类，因此选项中输入或通过<code>addLayer</code>添加的图层可以是组，其中可以包含其他组等。
                                </p>
                            </div>
                        </div>
                    </header>

                    <article>
                        <div class="container-overview">
                            <dl>
                                <dt class="">
                                    <div class="nameContainer">
                                        <div class="anchor" id="Map"></div>
                                        <h4 class="name">
                                            new Map<span class="signature">(<span
                                                    class="optional">options</span>)</span>
                                        </h4>

                                        <div class="tag-source">
                                            <a
                                                href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                            <a
                                                href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L238">line
                                                238</a>
                                        </div>
                                    </div>
                                </dt>
                                <dd class="">
                                    <table class="params">
                                        <thead>
                                            <tr>
                                                <th>Name</th>
                                                <th>Type</th>
                                                <th class="last">Description</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <tr class="">
                                                <td class="name"><code>controls</code></td>
                                                <td class="type">
                                                    <span class="param-type"><a
                                                            href="module-ol_Collection-Collection.html">Collection</a>&lt;<a
                                                            href="module-ol_control_Control-Control.html">Control</a>></span>
                                                    |

                                                    <span class="param-type">Array&lt;<a
                                                            href="module-ol_control_Control-Control.html">Control</a>></span>

                                                    | undefined
                                                </td>
                                                <td class="description last">
                                                    <p>
                                                        最初添加到地图中的控件。如果未指定，则使用<a
                                                            href="module-ol_control_defaults.html#.defaults"><code>默认值</code></a>。
                                                    </p>
                                                </td>
                                            </tr>
                                            <tr class="">
                                                <td class="name"><code>pixelRatio</code></td>
                                                <td class="type">
                                                    <span class="param-type">number</span>
                                                    (defaults to window.devicePixelRatio)
                                                </td>
                                                <td class="description last">
                                                    <p>设备上物理像素与设备独立像素（dips）之间的比率。</p>
                                                </td>
                                            </tr>

                                            <tr class="">
                                                <td class="name"><code>interactions</code></td>

                                                <td class="type">
                                                    <span class="param-type"><a
                                                            href="module-ol_Collection-Collection.html">Collection</a>&lt;<a
                                                            href="module-ol_interaction_Interaction-Interaction.html">Interaction</a>></span>
                                                    |

                                                    <span class="param-type">Array&lt;<a
                                                            href="module-ol_interaction_Interaction-Interaction.html">Interaction</a>></span>

                                                    | undefined
                                                </td>

                                                <td class="description last">
                                                    <p>
                                                        最初添加到地图中的交互。如果未指定，则使用 <a
                                                            href="module-ol_interaction_defaults.html#.defaults"><code>默认</code>
                                                        </a>。
                                                    </p>
                                                </td>
                                            </tr>

                                            <tr class="">
                                                <td class="name"><code>keyboardEventTarget</code></td>

                                                <td class="type">
                                                    <span class="param-type">HTMLElement</span>
                                                    |

                                                    <span class="param-type">Document</span>
                                                    |

                                                    <span class="param-type">string</span>

                                                    | undefined
                                                </td>

                                                <td class="description last">
                                                    <p>
                                                        用于监听键盘事件的元素。 这决定了何时触发<code>KeyboardPan</code>和
                                                        <code>KeyboardZoom</code> 交互例如，如果此选项设置为
                                                        <code>document</code>，键盘交互将始终触发。如果未指定此选项，库监听键盘事件的元素是地图目标(即用户提供的地图
                                                        div)。如果不是<code>document</code>,目标元素需要获得焦点才能发出键事件，这要求目标元素具有<code>tabindex</code>属性。
                                                    </p>
                                                </td>
                                            </tr>

                                            <tr class="">
                                                <td class="name"><code>layers</code></td>

                                                <td class="type">
                                                    <span class="param-type">Array&lt;<a
                                                            href="module-ol_layer_Base-BaseLayer.html">BaseLayer</a>></span>
                                                    |

                                                    <span class="param-type"><a
                                                            href="module-ol_Collection-Collection.html">Collection</a>&lt;<a
                                                            href="module-ol_layer_Base-BaseLayer.html">BaseLayer</a>></span>
                                                    |

                                                    <span class="param-type"><a
                                                            href="module-ol_layer_Group-LayerGroup.html">LayerGroup</a></span>

                                                    | undefined
                                                </td>

                                                <td class="description last">
                                                    <p>图层。如果未定义，将渲染一个没有任何图层的地图。。请注意，图层将按照提供的顺序渲染，因此如果您希望例如一个矢量图层出现在瓦片图层之上，它必须出现在瓦片图层之后。
                                                    </p>
                                                </td>
                                            </tr>

                                            <tr class="">
                                                <td class="name"><code>maxTilesLoading</code></td>

                                                <td class="type">
                                                    <span class="param-type">number</span>

                                                    (defaults to 16)
                                                </td>

                                                <td class="description last">
                                                    <p>要同时加载的最大瓦片数。</p>
                                                </td>
                                            </tr>

                                            <tr class="">
                                                <td class="name"><code>moveTolerance</code></td>

                                                <td class="type">
                                                    <span class="param-type">number</span>

                                                    (defaults to 1)
                                                </td>

                                                <td class="description last">
                                                    <p>光标必须移动的最小距离(以像素为单位)，以检测为地图移动事件而不是单击。增加这个值可以使点击地图更容易。</p>
                                                </td>
                                            </tr>

                                            <tr class="">
                                                <td class="name"><code>overlays</code></td>

                                                <td class="type">
                                                    <span class="param-type"><a
                                                            href="module-ol_Collection-Collection.html">Collection</a>&lt;<a
                                                            href="module-ol_Overlay-Overlay.html">Overlay</a>></span>
                                                    |

                                                    <span class="param-type">Array&lt;<a
                                                            href="module-ol_Overlay-Overlay.html">Overlay</a>></span>

                                                    | undefined
                                                </td>

                                                <td class="description last">
                                                    <p>最初添加到地图上的覆盖层。默认情况下，没有添加覆盖。</p>
                                                </td>
                                            </tr>

                                            <tr class="">
                                                <td class="name"><code>target</code></td>

                                                <td class="type">
                                                    <span class="param-type">HTMLElement</span>
                                                    |

                                                    <span class="param-type">string</span>

                                                    | undefined
                                                </td>

                                                <td class="description last">
                                                    <p>
                                                        映射的容器，元素本身或元素的<code>id</code> 。 如果在构造时未指定，则必须调用<a
                                                            href="module-ol_Map-Map.html#setTarget"><code>setTarget</code></a>
                                                        以呈现地图。如果按元素传递，则容器可以在辅助文档中。
                                                        <strong>注意:</strong> 对<code>目标</code>元素的CSS转换支持受
                                                        <code>比例</code>限制。
                                                    </p>
                                                </td>
                                            </tr>

                                            <tr class="">
                                                <td class="name"><code>view</code></td>

                                                <td class="type">
                                                    <span class="param-type"><a
                                                            href="module-ol_View-View.html">View</a></span>
                                                    |

                                                    <span class="param-type">Promise&lt;<a
                                                            href="module-ol_View.html#~ViewOptions">ViewOptions</a>></span>

                                                    | undefined
                                                </td>

                                                <td class="description last">
                                                    <p>
                                                        地图视图。除非在构造时或通过<a
                                                            href="module-ol_Map-Map.html#setView"><code>setView</code></a>指定，否则不会获取任何层源。
                                                    </p>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>

                                    <dl class="details"></dl>
                                    <h5>Fires:</h5>
                                    <ul>
                                        <li class="">
                                            <code><a href="module-ol_events_Event-BaseEvent.html#event:change">change</a></code>

                                            (<a href="module-ol_events_Event-BaseEvent.html">基本事件</a>) -
                                            通用更改事件。当修订计数器增加时触发。
                                        </li>

                                        <li class="">
                                            <code>change:layerGroup</code>

                                            (<a href="module-ol_Object.ObjectEvent.html">ObjectEvent</a>)
                                        </li>

                                        <li class="">
                                            <code>change:size</code>

                                            (<a href="module-ol_Object.ObjectEvent.html">ObjectEvent</a>)
                                        </li>

                                        <li class="">
                                            <code>change:target</code>

                                            (<a href="module-ol_Object.ObjectEvent.html">ObjectEvent</a>)
                                        </li>

                                        <li class="">
                                            <code>change:view</code>

                                            (<a href="module-ol_Object.ObjectEvent.html">ObjectEvent</a>)
                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_MapBrowserEvent-MapBrowserEvent.html#event:click">click</a></code>

                                            (<a href="module-ol_MapBrowserEvent-MapBrowserEvent.html">地图浏览器事件</a>) -
                                            没有拖动的点击。双击会触发两次此事件。
                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_MapBrowserEvent-MapBrowserEvent.html#event:dblclick">dblclick</a></code>

                                            (<a
                                                href="module-ol_MapBrowserEvent-MapBrowserEvent.html">地图浏览器事件(MapBrowserEvent)</a>)
                                            - 一个真正的双击，没有拖动。
                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_events_Event-BaseEvent.html#event:error">error</a></code>

                                            (<a href="module-ol_events_Event-BaseEvent.html">基本事件</a>) - 一般错误事件。发生错误时触发。
                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_MapEvent-MapEvent.html#event:loadend">loadend</a></code>

                                            (<a href="module-ol_MapEvent-MapEvent.html">地图事件(MapEvent)</a>) -
                                            当加载额外的地图数据完成时触发。
                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_MapEvent-MapEvent.html#event:loadstart">loadstart</a></code>

                                            (<a href="module-ol_MapEvent-MapEvent.html">MapEvent</a>) -
                                            当加载额外的地图数据(贴图、图像、特征)开始时触发。
                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_MapEvent-MapEvent.html#event:moveend">moveend</a></code>

                                            (<a href="module-ol_MapEvent-MapEvent.html">MapEvent</a>) - 在地图移动后触发。
                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_MapEvent-MapEvent.html#event:movestart">movestart</a></code>

                                            (<a href="module-ol_MapEvent-MapEvent.html">MapEvent</a>) - 当地图开始移动时触发。
                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_MapBrowserEvent-MapBrowserEvent.html#event:pointerdrag">pointerdrag</a></code>

                                            (<a
                                                href="module-ol_MapBrowserEvent-MapBrowserEvent.html">MapBrowserEvent</a>)
                                            - 当被鼠标拖动时触发。
                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_MapBrowserEvent-MapBrowserEvent.html#event:pointermove">pointermove</a></code>

                                            (<a
                                                href="module-ol_MapBrowserEvent-MapBrowserEvent.html">MapBrowserEvent</a>)
                                            - 当鼠标移动时触发。请注意，在触摸设备上，当地图平移时触发此事件，因此与 mousemove 不同。
                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_render_Event-RenderEvent.html#event:postcompose">postcompose</a></code>

                                            (<a href="module-ol_render_Event-RenderEvent.html">RenderEvent</a>) -
                                            在图层组成后触发。当由地图派发时，事件对象不会有上下文设置。当由图层派发时，事件对象会有上下文设置。目前只有WebGL图层会派发此事件。
                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_MapEvent-MapEvent.html#event:postrender">postrender</a></code>

                                            (<a href="module-ol_MapEvent-MapEvent.html">MapEvent</a>) - 在地图帧渲染后触发。
                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_render_Event-RenderEvent.html#event:precompose">precompose</a></code>

                                            (<a href="module-ol_render_Event-RenderEvent.html">RenderEvent</a>) -
                                            在图层组成之前触发。当由地图派发时，事件对象不会有上下文设置。当由图层派发时，事件对象会有上下文设置。目前只有WebGL图层会派发此事件。
                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_Object.ObjectEvent.html#event:propertychange">propertychange</a></code>

                                            (<a href="module-ol_Object.ObjectEvent.html">ObjectEvent</a>) - 当属性发生变化时触发。
                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_render_Event-RenderEvent.html#event:rendercomplete">rendercomplete</a></code>

                                            (<a href="module-ol_render_Event-RenderEvent.html">RenderEvent</a>) -
                                            当渲染完成时触发，即当前视口中的所有源和瓦片已完成加载，所有瓦片已淡入。事件对象不会有上下文设置。
                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_MapBrowserEvent-MapBrowserEvent.html#event:singleclick">singleclick</a></code>

                                            (<a
                                                href="module-ol_MapBrowserEvent-MapBrowserEvent.html">MapBrowserEvent</a>)
                                            - 没有拖动和双击的真正单击。请注意，此事件被延迟了250毫秒，以确保它不是双击。
                                        </li>
                                    </ul>
                                </dd>
                            </dl>
                        </div>

                        <h3 class="subsection-title">扩展(Extends)</h3>

                        <ul>
                            <li><a href="module-ol_Object-BaseObject.html">BaseObject</a></li>
                        </ul>

                        <h3 class="subsection-title">可观察到的属性</h3>
                        <dl>
                            <table class="props">
                                <thead>
                                    <tr>
                                        <th>Name</th>
                                        <th>Type</th>
                                        <th>可设置的(Settable)</th>
                                        <th><a href="module-ol_Object.ObjectEvent.html">ObjectEvent</a> type</th>
                                        <th class="last">描述(Description)</th>
                                    </tr>
                                </thead>

                                <tbody>
                                    <tr class="">
                                        <td class="name"><code>layerGroup</code></td>
                                        <td class="type">
                                            <span class="param-type"><a
                                                    href="module-ol_layer_Group-LayerGroup.html">LayerGroup</a></span>
                                        </td>
                                        <td class="setter">yes</td>
                                        <td class="event"><code>change:layergroup</code></td>
                                        <td class="description last">
                                            <p>包含此地图中各层的图层组。</p>
                                        </td>
                                    </tr>

                                    <tr class="">
                                        <td class="name"><code>size</code></td>
                                        <td class="type">
                                            <span class="param-type"><a href="module-ol_size.html#~Size">Size</a></span>
                                            |

                                            <span class="param-type">undefined</span>
                                        </td>
                                        <td class="setter">yes</td>
                                        <td class="event"><code>change:size</code></td>
                                        <td class="description last">
                                            <p>地图在DOM中的像素大小。</p>
                                        </td>
                                    </tr>

                                    <tr class="">
                                        <td class="name"><code>target</code></td>
                                        <td class="type">
                                            <span class="param-type">HTMLElement</span>
                                            |

                                            <span class="param-type">string</span>
                                            |

                                            <span class="param-type">undefined</span>
                                        </td>
                                        <td class="setter">yes</td>
                                        <td class="event"><code>change:target</code></td>
                                        <td class="description last">
                                            <p>地图渲染所在的元素或元素的id。</p>
                                        </td>
                                    </tr>

                                    <tr class="">
                                        <td class="name"><code>view</code></td>
                                        <td class="type">
                                            <span class="param-type"><a href="module-ol_View-View.html">View</a></span>
                                        </td>
                                        <td class="setter">yes</td>
                                        <td class="event"><code>change:view</code></td>
                                        <td class="description last">
                                            <p>控制此地图的视图。</p>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </dl>

                        <h3 class="subsection-title">方法(Methods)</h3>

                        <dl>
                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="addControl"></div>
                                    <h4 class="name">addControl<span class="signature">(control)</span></h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L593">line
                                            593</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>将给定的控件添加到映射。</p>
                                </div>
                                <table class="params">
                                    <thead>
                                        <tr>
                                            <th>Name</th>

                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <tr class="">
                                            <td class="name"><code>控件(control)</code></td>

                                            <td class="type">
                                                <span class="param-type"><a
                                                        href="module-ol_control_Control-Control.html">Control</a></span>
                                            </td>

                                            <td class="description last">
                                                <p>Control.</p>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                                <dl class="details"></dl>
                            </dd>
                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="addInteraction"></div>
                                    <h4 class="name">addInteraction<span class="signature">(interaction)</span></h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L606">line
                                            606</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>
                                        将给定的交互添加到映射中。如果希望在集合的另一点添加交互，请使用 <code>getInteractions()</code>和<a
                                            href="module-ol_Collection-Collection.html"><code>Collection</code></a>上可用的方法。
                                        这可以用于阻止事件从 handleEvent 函数传播。交互按此集合的相反顺序处理事件。
                                    </p>
                                </div>
                                <table class="params">
                                    <thead>
                                        <tr>
                                            <th>Name</th>

                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <tr class="">
                                            <td class="name"><code>交互(interaction)</code></td>

                                            <td class="type">
                                                <span class="param-type"><a
                                                        href="module-ol_interaction_Interaction-Interaction.html">Interaction</a></span>
                                            </td>

                                            <td class="description last">
                                                <p>要添加的交互。</p>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                                <dl class="details"></dl>
                            </dd>
                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="addLayer"></div>
                                    <h4 class="name">addLayer<span class="signature">(layer)</span></h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L617">line
                                            617</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>
                                        将给定的图层添加到此地图的顶部。如果您想在堆栈的其他位置添加图层，请使用<code>getLayers()</code> 和<a
                                            href="module-ol_Collection-Collection.html"><code>Collection</code></a>上可用的方法。
                                    </p>
                                </div>
                                <table class="params">
                                    <thead>
                                        <tr>
                                            <th>Name</th>

                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <tr class="">
                                            <td class="name"><code>layer</code></td>

                                            <td class="type">
                                                <span class="param-type"><a
                                                        href="module-ol_layer_Base-BaseLayer.html">BaseLayer</a></span>
                                            </td>

                                            <td class="description last">
                                                <p>Layer.</p>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                                <dl class="details"></dl>
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="addOverlay"></div>
                                    <h4 class="name">addOverlay<span class="signature">(overlay)</span></h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L635">line
                                            635</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>将给定的覆盖层添加到地图上。</p>
                                </div>
                                <table class="params">
                                    <thead>
                                        <tr>
                                            <th>Name</th>

                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <tr class="">
                                            <td class="name"><code>overlay</code></td>

                                            <td class="type">
                                                <span class="param-type"><a
                                                        href="module-ol_Overlay-Overlay.html">Overlay</a></span>
                                            </td>

                                            <td class="description last">
                                                <p>Overlay.</p>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                                <dl class="details"></dl>
                            </dd>

                            <dt class="">
                                <div class="nameContainer inherited">
                                    <div class="anchor" id="changed"></div>
                                    <h4 class="name">
                                        changed<span class="signature">()</span>

                                        <span class="inherited"><a
                                                href="module-ol_Observable-Observable.html#changed">inherited</a></span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js">Observable.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js#L68">line
                                            68</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>增加修订计数器并分派一个“change”事件。</p>
                                </div>
                                <dl class="details"></dl>
                            </dd>
                            <dt class="">
                                <div class="nameContainer inherited">
                                    <div class="anchor" id="dispatchEvent"></div>
                                    <h4 class="name">
                                        dispatchEvent<span class="signature">(event)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{boolean | undefined}</span>

                                        <span class="inherited"><a
                                                href="module-ol_events_Target-Target.html#dispatchEvent">inherited</a></span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/events/Target.js">events/Target.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/events/Target.js#L85">line
                                            85</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>分派一个事件并调用所有正在监听此类型事件的监听器。事件参数可以是字符串或具有<code>type</code> 属性的对象。</p>
                                </div>
                                <table class="params">
                                    <thead>
                                        <tr>
                                            <th>Name</th>
                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <tr class="">
                                            <td class="name"><code>event</code></td>

                                            <td class="type">
                                                <span class="param-type"><a
                                                        href="module-ol_events_Event-BaseEvent.html">BaseEvent</a></span>
                                                |

                                                <span class="param-type">string</span>
                                            </td>

                                            <td class="description last">
                                                <p>Event object.</p>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                如果有人在事件对象上调用preventDefault，或者任何侦听器返回false，则返回 <code>false</code>。
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="flushDeclutterItems"></div>
                                    <h4 class="name">flushDeclutterItems<span class="signature">()</span></h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L1467">line
                                            1467</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>
                                        该方法应在图层的预渲染监听器中调用。它会立即清除和渲染所有收集的清除项。这对于需要完全出现在图层堆栈中较低图层的清除项之上的图层很有用。
                                    </p>
                                </div>

                                <dl class="details"></dl>
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="forEachFeatureAtPixel"></div>
                                    <h4 class="name">
                                        forEachFeatureAtPixel<span class="signature">(pixel, callback, <span
                                                class="optional">options</span>)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{T | undefined}</span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L683">line
                                            683</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>检测视口中与像素相交的要素，并对每个相交的要素执行回调。可以通过<code>options</code>中的<code>layerFilter</code>选项配置包含在检测中的图层。
                                    </p>
                                </div>

                                <table class="params">
                                    <thead>
                                        <tr>
                                            <th>Name</th>

                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <tr class="">
                                            <td class="name"><code>pixel</code></td>

                                            <td class="type">
                                                <span class="param-type"><a
                                                        href="module-ol_pixel.html#~Pixel">Pixel</a></span>
                                            </td>

                                            <td class="description last">
                                                <p>像素(pixel)</p>
                                            </td>
                                        </tr>

                                        <tr class="">
                                            <td class="name"><code>callback</code></td>

                                            <td class="type">
                                                <span class="param-type">function</span>
                                            </td>

                                            <td class="description last">
                                                <p>
                                                    回调功能。回调函数将带两个参数调用。
                                                    第一个参数是像素上的一个<a
                                                        href="module-ol_Feature-Feature.html"><code>特性</code></a>或<a
                                                        href="module-ol_render_Feature-RenderFeature.html"><code>渲染特性</code></a>,
                                                    第二个参数是特性的<a
                                                        href="module-ol_layer_Layer-Layer.html"><code>图层</code></a>，
                                                    对于非托管图层则为 null。要停止检测，回调函数可以返回一个真值</p>
                                            </td>
                                        </tr>

                                        <tr class="">
                                            <td class="name"><code>options</code></td>

                                            <td colspan="2" class="description last">
                                                <p>Optional options.</p>

                                                <table class="params">
                                                    <thead>
                                                        <tr>
                                                            <th>Name</th>

                                                            <th>Type</th>

                                                            <th class="last">Description</th>
                                                        </tr>
                                                    </thead>

                                                    <tbody>
                                                        <tr class="">
                                                            <td class="name"><code>layerFilter</code></td>

                                                            <td class="type">
                                                                <span class="param-type">undefined</span>
                                                                |

                                                                <span class="param-type">function</span>
                                                            </td>

                                                            <td class="description last">
                                                                <p>
                                                                    图层过滤器函数。 过滤器函数将接收一个参数，即
                                                                    <a
                                                                        href="module-ol_layer_Layer-Layer.html"><code>图层候选对象</code></a>,
                                                                    并应返回一个布尔值。只有可见且该函数返回<code>true</code>的图层才会用于检测特性。
                                                                    默认情况下，所有可见的图层都将进行检测。
                                                                </p>
                                                            </td>
                                                        </tr>

                                                        <tr class="">
                                                            <td class="name"><code>hitTolerance</code></td>

                                                            <td class="type">
                                                                <span class="param-type">number</span>

                                                                (defaults to 0)
                                                            </td>

                                                            <td class="description last">
                                                                <p>以 CSS 像素为单位的点击检测容差。将检查给定位置周围半径内的像素以获取要素。</p>
                                                            </td>
                                                        </tr>

                                                        <tr class="">
                                                            <td class="name"><code>checkWrapped</code></td>

                                                            <td class="type">
                                                                <span class="param-type">boolean</span>

                                                                (defaults to true)
                                                            </td>

                                                            <td class="description last">
                                                                <p>Check-Wrapped 将检查在 +/- 1
                                                                    世界宽度范围内的包裹几何图形。仅当使用可以包裹的投影时才有效。</p>
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                回调结果，即最后一次回调执行的返回值，或第一个真值回调返回值。
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer inherited">
                                    <div class="anchor" id="get"></div>
                                    <h4 class="name">
                                        get<span class="signature">(key)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{*}</span>

                                        <span class="inherited"><a
                                                href="module-ol_Object-BaseObject.html#get">inherited</a></span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js">Object.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js#L135">line
                                            135</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>获取一个值。</p>
                                </div>

                                <table class="params">
                                    <thead>
                                        <tr>
                                            <th>Name</th>

                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <tr class="">
                                            <td class="name"><code>key</code></td>

                                            <td class="type">
                                                <span class="param-type">string</span>
                                            </td>

                                            <td class="description last">
                                                <p>键名。</p>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                Value.
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="getAllLayers"></div>
                                    <h4 class="name">
                                        getAllLayers<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{Array&lt;<a
                                                href="module-ol_layer_Layer-Layer.html">Layer</a>>}</span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L731">line
                                            731</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>获取所有图层组中的所有图层。</p>
                                </div>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                Layers.
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="getControls"></div>
                                    <h4 class="name">
                                        getControls<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_Collection-Collection.html">Collection</a>&lt;<a
                                                href="module-ol_control_Control-Control.html">Control</a>>}</span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L878">line
                                            878</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>获取地图控件。修改此集合将更改与地图关联的控件。</p>
                                </div>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                Controls.
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="getCoordinateFromPixel"></div>
                                    <h4 class="name">
                                        getCoordinateFromPixel<span class="signature">(pixel)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_coordinate.html#~Coordinate">Coordinate</a>}</span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L851">line
                                            851</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>获取给定像素的坐标。这将返回用户投影中的坐标。</p>
                                </div>

                                <table class="params">
                                    <thead>
                                        <tr>
                                            <th>Name</th>

                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <tr class="">
                                            <td class="name"><code>pixel</code></td>

                                            <td class="type">
                                                <span class="param-type"><a
                                                        href="module-ol_pixel.html#~Pixel">Pixel</a></span>
                                            </td>

                                            <td class="description last">
                                                <p>像素位置的坐标。</p>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                The coordinate for the pixel position.
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="getEventCoordinate"></div>
                                    <h4 class="name">
                                        getEventCoordinate<span class="signature">(event)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_coordinate.html#~Coordinate">Coordinate</a>}</span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L781">line
                                            781</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>对于浏览器事件，返回用户投影中的坐标。</p>
                                </div>

                                <table class="params">
                                    <thead>
                                        <tr>
                                            <th>Name</th>

                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <tr class="">
                                            <td class="name"><code>event</code></td>

                                            <td class="type">
                                                <span class="param-type">MouseEvent</span>
                                            </td>

                                            <td class="description last">
                                                <p>Event.</p>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                Coordinate.
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="getEventPixel"></div>
                                    <h4 class="name">
                                        getEventPixel<span class="signature">(event)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_pixel.html#~Pixel">Pixel</a>}</span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L800">line
                                            800</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>对于浏览器事件，返回相对于视口的地图像素位置。</p>
                                </div>

                                <table class="params">
                                    <thead>
                                        <tr>
                                            <th>Name</th>

                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <tr class="">
                                            <td class="name"><code>event</code></td>

                                            <td class="type">
                                                <span class="param-type">UIEvent</span>
                                                |

                                                <span class="param-type">Object</span>
                                            </td>

                                            <td class="description last">
                                                <p>Event.</p>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                Pixel.
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="getFeaturesAtPixel"></div>
                                    <h4 class="name">
                                        getFeaturesAtPixel<span class="signature">(pixel, <span
                                                class="optional">options</span>)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{Array&lt;<a
                                                href="module-ol_Feature.html#~FeatureLike">FeatureLike</a>>}</span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L714">line
                                            714</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>获取与视口上的像素相交的所有要素。</p>
                                </div>

                                <table class="params">
                                    <thead>
                                        <tr>
                                            <th>Name</th>

                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <tr class="">
                                            <td class="name"><code>pixel</code></td>

                                            <td class="type">
                                                <span class="param-type"><a
                                                        href="module-ol_pixel.html#~Pixel">Pixel</a></span>
                                            </td>

                                            <td class="description last">
                                                <p>Pixel.</p>
                                            </td>
                                        </tr>

                                        <tr class="">
                                            <td class="name"><code>options</code></td>

                                            <td colspan="2" class="description last">
                                                <p>Optional options.</p>

                                                <table class="params">
                                                    <thead>
                                                        <tr>
                                                            <th>Name</th>

                                                            <th>Type</th>

                                                            <th class="last">Description</th>
                                                        </tr>
                                                    </thead>

                                                    <tbody>
                                                        <tr class="">
                                                            <td class="name"><code>layerFilter</code></td>

                                                            <td class="type">
                                                                <span class="param-type">undefined</span>
                                                                |

                                                                <span class="param-type">function</span>
                                                            </td>

                                                            <td class="description last">
                                                                <p> function
                                                                    图层过滤器函数。 过滤器函数将接收一个参数，即
                                                                    <a
                                                                        href="module-ol_layer_Layer-Layer.html"><code> 图层候选对象</code></a>,
                                                                    并应返回一个布尔值。只有可见且该函数返回<code>true</code>的图层才会用于检测特性。
                                                                    默认情况下，所有可见的图层都将进行检测。
                                                                </p>
                                                            </td>
                                                        </tr>

                                                        <tr class="">
                                                            <td class="name"><code>hitTolerance</code></td>

                                                            <td class="type">
                                                                <span class="param-type">number</span>

                                                                (defaults to 0)
                                                            </td>

                                                            <td class="description last">
                                                                <p>以 CSS 像素为单位的点击检测容差。将检查给定位置周围半径内的像素以获取要素。</p>
                                                            </td>
                                                        </tr>

                                                        <tr class="">
                                                            <td class="name"><code>checkWrapped</code></td>

                                                            <td class="type">
                                                                <span class="param-type">boolean</span>

                                                                (defaults to true)
                                                            </td>

                                                            <td class="description last">
                                                                <p>Check-Wrapped 将检查在 +/- 1
                                                                    世界宽度范围内的包裹几何图形。仅当使用可以包裹的投影时才有效。</p>
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                回调结果，即最后一次回调执行的返回值，或第一个真值回调返回值。
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="getInteractions"></div>
                                    <h4 class="name">
                                        getInteractions<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_Collection-Collection.html">Collection</a>&lt;<a
                                                href="module-ol_interaction_Interaction-Interaction.html">Interaction</a>>}</span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L913">line
                                            913</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>获取地图交互。修改此集合将更改与地图关联的交互。</p>
                                    <p>交互用于操作地图 例如平移、缩放和旋转。</p>
                                </div>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                Interactions.
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getKeys"></div>
                                    <h4 class="name">
                                        getKeys<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{Array.&lt;string>}</span>

                                        <span class="inherited"><a
                                                href="module-ol_Object-BaseObject.html#getKeys">inherited</a></span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js">Object.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js#L148">line
                                            148</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>获取对象属性名称的列表。</p>
                                </div>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                属性名称列表。
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="getLayerGroup"></div>
                                    <h4 class="name">
                                        getLayerGroup<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_layer_Group-LayerGroup.html">LayerGroup</a>}</span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L923">line
                                            923</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>获取与此地图关联的图层组。</p>
                                </div>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                包含此地图中图层的图层组。
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="getLayers"></div>
                                    <h4 class="name">
                                        getLayers<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_Collection-Collection.html">Collection</a>&lt;<a
                                                href="module-ol_layer_Base-BaseLayer.html">BaseLayer</a>>}</span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L949">line
                                            949</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>获取与此地图关联的图层集合。</p>
                                </div>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                Layers.
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="getOverlayById"></div>
                                    <h4 class="name">
                                        getOverlayById<span class="signature">(id)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_Overlay-Overlay.html">Overlay</a>}</span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L900">line
                                            900</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>通过其标识符 ( overlay.getId()返回的值)获取一个覆盖层。请注意，索引将字符串和数字标识符视为相同。因此，
                                        <code>map.getOverlayById(2)</code> 将返回具有 id 为 <code>'2'</code> 或
                                        <code>2</code>的覆盖层。

                                    </p>
                                </div>

                                <table class="params">
                                    <thead>
                                        <tr>
                                            <th>Name</th>

                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <tr class="">
                                            <td class="name"><code>id</code></td>

                                            <td class="type">
                                                <span class="param-type">string</span>
                                                |

                                                <span class="param-type">number</span>
                                            </td>

                                            <td class="description last">
                                                <p>Overlay identifier.</p>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                Overlay.
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="getOverlays"></div>
                                    <h4 class="name">
                                        getOverlays<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_Collection-Collection.html">Collection</a>&lt;<a
                                                href="module-ol_Overlay-Overlay.html">Overlay</a>>}</span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L888">line
                                            888</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>获取地图叠加层。修改此集合会更改与地图关联的叠加层。</p>
                                </div>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                Overlays.
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="getPixelFromCoordinate"></div>
                                    <h4 class="name">
                                        getPixelFromCoordinate<span class="signature">(coordinate)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_pixel.html#~Pixel">Pixel</a>}</span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L983">line
                                            983</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>获取坐标的像素。这将获取用户投影中的坐标并返回相应的像素。</p>
                                </div>

                                <table class="params">
                                    <thead>
                                        <tr>
                                            <th>Name</th>

                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <tr class="">
                                            <td class="name"><code>coordinate</code></td>

                                            <td class="type">
                                                <span class="param-type"><a
                                                        href="module-ol_coordinate.html#~Coordinate">Coordinate</a></span>
                                            </td>

                                            <td class="description last">
                                                <p>A map coordinate.</p>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                地图视口中的像素位置。
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getProperties"></div>
                                    <h4 class="name">
                                        getProperties<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{Object.&lt;string, *>}</span>

                                        <span class="inherited"><a
                                                href="module-ol_Object-BaseObject.html#getProperties">inherited</a></span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js">Object.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js#L157">line
                                            157</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>获取所有属性名称和值的对象。</p>
                                </div>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                Object.
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getRevision"></div>
                                    <h4 class="name">
                                        getRevision<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{number}</span>

                                        <span class="inherited"><a
                                                href="module-ol_Observable-Observable.html#getRevision">inherited</a></span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js">Observable.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js#L79">line
                                            79</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>获取此对象的版本号。每次修改对象时，其版本号都会递增。</p>
                                </div>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                Revision.
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="getSize"></div>
                                    <h4 class="name">
                                        getSize<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_size.html#~Size">Size</a> | undefined}</span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L1022">line
                                            1022</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>获取此地图的大小。</p>
                                </div>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                DOM 中地图的大小（以像素为单位）。
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="getTarget"></div>
                                    <h4 class="name">getTarget<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{HTMLElement | string | undefined}</span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L827">line
                                            827</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>获取在其中呈现此地图的目标。请注意，这将返回作为选项或在 setTarget 中输入的内容：如果这是一个元素，则返回一个元素;如果是字符串，则返回该字符串。
                                    </p>
                                </div>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                呈现地图的元素或 id。
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="getTargetElement"></div>
                                    <h4 class="name">getTargetElement<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{HTMLElement}</span></h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L840">line
                                            840</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>获取此地图渲染到的 DOM 元素。与 <code>getTarget</code>此方法相反，此方法始终返回一个
                                        <code>Element</code>，如果地图没有目标，则返回 <code>nill</code>。
                                    </p>
                                </div>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                渲染地图的元素。
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="getView"></div>
                                    <h4 class="name">
                                        getView<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_View-View.html">View</a>}</span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L1035">line
                                            1035</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>获取与此地图关联的视图。视图管理中心和分辨率等属性。</p>
                                </div>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                控制此地图的视图。
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="getViewport"></div>
                                    <h4 class="name">getViewport<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{HTMLElement}</span></h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L1044">line
                                            1044</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>获取用作地图视区的元素。</p>
                                </div>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                Viewport.
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="hasFeatureAtPixel"></div>
                                    <h4 class="name">
                                        hasFeatureAtPixel<span class="signature">(pixel, <span
                                                class="optional">options</span>)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{boolean}</span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L754">line
                                            754</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>检测特性是否与视口上的像素相交。可以通过<code>layerFilter</code>选项配置包含在检测中的图层。</p>
                                </div>

                                <table class="params">
                                    <thead>
                                        <tr>
                                            <th>Name</th>

                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <tr class="">
                                            <td class="name"><code>pixel</code></td>

                                            <td class="type">
                                                <span class="param-type"><a
                                                        href="module-ol_pixel.html#~Pixel">Pixel</a></span>
                                            </td>

                                            <td class="description last">
                                                <p>Pixel.</p>
                                            </td>
                                        </tr>

                                        <tr class="">
                                            <td class="name"><code>options</code></td>

                                            <td colspan="2" class="description last">
                                                <p>Optional options.</p>

                                                <table class="params">
                                                    <thead>
                                                        <tr>
                                                            <th>Name</th>

                                                            <th>Type</th>

                                                            <th class="last">Description</th>
                                                        </tr>
                                                    </thead>

                                                    <tbody>
                                                        <tr class="">
                                                            <td class="name"><code>layerFilter</code></td>

                                                            <td class="type">
                                                                <span class="param-type">undefined</span>
                                                                |

                                                                <span class="param-type">function</span>
                                                            </td>

                                                            <td class="description last">
                                                                <p>
                                                                    图层过滤器函数。 过滤器函数将接收一个参数，即
                                                                    <a
                                                                        href="module-ol_layer_Layer-Layer.html"><code>图层候选对象</code></a>,
                                                                    并应返回一个布尔值。只有可见且该函数返回<code>true</code>的图层才会用于检测特性。
                                                                    默认情况下，所有可见的图层都将进行检测。
                                                                </p>
                                                            </td>
                                                        </tr>

                                                        <tr class="">
                                                            <td class="name"><code>hitTolerance</code></td>

                                                            <td class="type">
                                                                <span class="param-type">number</span>

                                                                (defaults to 0)
                                                            </td>

                                                            <td class="description last">
                                                                <p>以 CSS 像素为单位的点击检测容差。将检查给定位置周围半径内的像素以获取要素。</p>
                                                            </td>
                                                        </tr>

                                                        <tr class="">
                                                            <td class="name"><code>checkWrapped</code></td>

                                                            <td class="type">
                                                                <span class="param-type">boolean</span>

                                                                (defaults to true)
                                                            </td>

                                                            <td class="description last">
                                                                <p>Check-Wrapped 将检查在 +/- 1
                                                                    世界宽度范围内的包裹几何图形。仅当使用可以包裹的投影时才有效。</p>
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                给定像素处是否存在特性？
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer inherited">
                                    <div class="anchor" id="on"></div>
                                    <h4 class="name">
                                        on<span class="signature">(type, listener)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_events.html#~EventsKey">EventsKey</a> | Array&lt;<a
                                                href="module-ol_events.html#~EventsKey">EventsKey</a>>}</span>

                                        <span class="inherited"><a
                                                href="module-ol_Observable-Observable.html#on">inherited</a></span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js">Observable.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js#L152">line
                                            152</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>侦听某种类型的事件。</p>
                                </div>

                                <table class="params">
                                    <thead>
                                        <tr>
                                            <th>Name</th>

                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <tr class="">
                                            <td class="name"><code>type</code></td>

                                            <td class="type">
                                                <span class="param-type">string</span>
                                                |

                                                <span class="param-type">Array.&lt;string></span>
                                            </td>

                                            <td class="description last">
                                                <p>事件类型或事件类型的数组。</p>
                                            </td>
                                        </tr>

                                        <tr class="">
                                            <td class="name"><code>listener</code></td>

                                            <td class="type">
                                                <span class="param-type">function</span>
                                            </td>

                                            <td class="description last">
                                                <p>The listener function.</p>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                侦听器的唯一键。如果使用事件类型数组作为第一个参数进行调用，则返回将是一个键数组。
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer inherited">
                                    <div class="anchor" id="once"></div>
                                    <h4 class="name">
                                        once<span class="signature">(type, listener)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_events.html#~EventsKey">EventsKey</a> | Array&lt;<a
                                                href="module-ol_events.html#~EventsKey">EventsKey</a>>}</span>

                                        <span class="inherited"><a
                                                href="module-ol_Observable-Observable.html#once">inherited</a></span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js">Observable.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js#L164">line
                                            164</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>为某种类型的事件侦听一次。</p>
                                </div>

                                <table class="params">
                                    <thead>
                                        <tr>
                                            <th>Name</th>

                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <tr class="">
                                            <td class="name"><code>type</code></td>

                                            <td class="type">
                                                <span class="param-type">string</span>
                                                |

                                                <span class="param-type">Array.&lt;string></span>
                                            </td>

                                            <td class="description last">
                                                <p>事件类型或事件类型的数组。</p>
                                            </td>
                                        </tr>

                                        <tr class="">
                                            <td class="name"><code>listener</code></td>

                                            <td class="type">
                                                <span class="param-type">function</span>
                                            </td>

                                            <td class="description last">
                                                <p>The listener function.</p>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                侦听器的唯一键。如果使用事件类型数组作为第一个参数进行调用，则返回将是一个键数组。
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="removeControl"></div>
                                    <h4 class="name">
                                        removeControl<span class="signature">(control)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_control_Control-Control.html">Control</a> |
                                            undefined}</span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L1482">line
                                            1482</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>从映射中删除给定的控件。</p>
                                </div>

                                <table class="params">
                                    <thead>
                                        <tr>
                                            <th>Name</th>

                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <tr class="">
                                            <td class="name"><code>control</code></td>

                                            <td class="type">
                                                <span class="param-type"><a
                                                        href="module-ol_control_Control-Control.html">Control</a></span>
                                            </td>

                                            <td class="description last">
                                                <p>Control.</p>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                已删除的控件（如果未找到控件，则未定义）。
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="removeInteraction"></div>
                                    <h4 class="name">
                                        removeInteraction<span class="signature">(interaction)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_interaction_Interaction-Interaction.html">Interaction</a>
                                            | undefined}</span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L1493">line
                                            1493</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>从地图中移除给定的交互。</p>
                                </div>

                                <table class="params">
                                    <thead>
                                        <tr>
                                            <th>Name</th>

                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <tr class="">
                                            <td class="name"><code>interaction</code></td>

                                            <td class="type">
                                                <span class="param-type"><a
                                                        href="module-ol_interaction_Interaction-Interaction.html">Interaction</a></span>
                                            </td>

                                            <td class="description last">
                                                <p>Interaction to remove.</p>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                已删除的交互（如果未找到交互，则未定义）。
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="removeLayer"></div>
                                    <h4 class="name">
                                        removeLayer<span class="signature">(layer)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_layer_Base-BaseLayer.html">BaseLayer</a> |
                                            undefined}</span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L1504">line
                                            1504</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>从地图中移除给定图层。</p>
                                </div>

                                <table class="params">
                                    <thead>
                                        <tr>
                                            <th>Name</th>

                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <tr class="">
                                            <td class="name"><code>layer</code></td>

                                            <td class="type">
                                                <span class="param-type"><a
                                                        href="module-ol_layer_Base-BaseLayer.html">BaseLayer</a></span>
                                            </td>

                                            <td class="description last">
                                                <p>Layer.</p>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                移除的图层（如果未找到图层，则未定义）。
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="removeOverlay"></div>
                                    <h4 class="name">
                                        removeOverlay<span class="signature">(overlay)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_Overlay-Overlay.html">Overlay</a> | undefined}</span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L1524">line
                                            1524</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>从地图中移除给定的叠加层。</p>
                                </div>

                                <table class="params">
                                    <thead>
                                        <tr>
                                            <th>Name</th>

                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <tr class="">
                                            <td class="name"><code>overlay</code></td>

                                            <td class="type">
                                                <span class="param-type"><a
                                                        href="module-ol_Overlay-Overlay.html">Overlay</a></span>
                                            </td>

                                            <td class="description last">
                                                <p>Overlay.</p>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                                <dl class="details"></dl>

                                <h5>Returns:</h5>
                                移除的覆盖（如果未找到覆盖，则未定义）。
                                <br />
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="render"></div>
                                    <h4 class="name">render<span class="signature">()</span></h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L1454">line
                                            1454</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>请求地图渲染（在下一个动画帧处）。</p>
                                </div>

                                <dl class="details"></dl>
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="renderSync"></div>
                                    <h4 class="name">renderSync<span class="signature">()</span></h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L1430">line
                                            1430</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>请求以同步方式立即呈现。</p>
                                </div>

                                <dl class="details"></dl>
                            </dd>

                            <dt class="">
                                <div class="nameContainer inherited">
                                    <div class="anchor" id="set"></div>
                                    <h4 class="name">
                                        set<span class="signature">(key, value, <span
                                                class="optional">silent</span>)</span>

                                        <span class="inherited"><a
                                                href="module-ol_Object-BaseObject.html#set">inherited</a></span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js">Object.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js#L215">line
                                            215</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>设置值。</p>
                                </div>

                                <table class="params">
                                    <thead>
                                        <tr>
                                            <th>Name</th>

                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <tr class="">
                                            <td class="name"><code>key</code></td>

                                            <td class="type">
                                                <span class="param-type">string</span>
                                            </td>

                                            <td class="description last">
                                                <p>键名称。</p>
                                            </td>
                                        </tr>

                                        <tr class="">
                                            <td class="name"><code>value</code></td>

                                            <td class="type">
                                                <span class="param-type">*</span>
                                            </td>

                                            <td class="description last">
                                                <p>值</p>
                                            </td>
                                        </tr>

                                        <tr class="">
                                            <td class="name"><code>silent</code></td>

                                            <td class="type">
                                                <span class="param-type">boolean</span>

                                                | undefined
                                            </td>

                                            <td class="description last">
                                                <p>是否在不触发事件的情况下进行更新。</p>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                                <dl class="details"></dl>
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="setLayerGroup"></div>
                                    <h4 class="name">setLayerGroup<span class="signature">(layerGroup)</span></h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L1647">line
                                            1647</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>设置此地图的图层组。</p>
                                </div>

                                <table class="params">
                                    <thead>
                                        <tr>
                                            <th>Name</th>

                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <tr class="">
                                            <td class="name"><code>layerGroup</code></td>

                                            <td class="type">
                                                <span class="param-type"><a
                                                        href="module-ol_layer_Group-LayerGroup.html">LayerGroup</a></span>
                                            </td>

                                            <td class="description last">
                                                <p>包含此地图中的图层的图层组。</p>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                                <dl class="details"></dl>
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="setLayers"></div>
                                    <h4 class="name">setLayers<span class="signature">(layers)</span></h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L932">line
                                            932</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>清除所有现有图层并将图层添加到地图。</p>
                                </div>

                                <table class="params">
                                    <thead>
                                        <tr>
                                            <th>Name</th>

                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <tr class="">
                                            <td class="name"><code>layers</code></td>

                                            <td class="type">
                                                <span class="param-type">Array&lt;<a
                                                        href="module-ol_layer_Base-BaseLayer.html">BaseLayer</a>></span>
                                                |

                                                <span class="param-type"><a
                                                        href="module-ol_Collection-Collection.html">Collection</a>&lt;<a
                                                        href="module-ol_layer_Base-BaseLayer.html">BaseLayer</a>></span>
                                            </td>

                                            <td class="description last">
                                                <p>要添加到地图的图层。</p>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                                <dl class="details"></dl>
                            </dd>

                            <dt class="">
                                <div class="nameContainer inherited">
                                    <div class="anchor" id="setProperties"></div>
                                    <h4 class="name">
                                        setProperties<span class="signature">(values, <span
                                                class="optional">silent</span>)</span>

                                        <span class="inherited"><a
                                                href="module-ol_Object-BaseObject.html#setProperties">inherited</a></span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js">Object.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js#L235">line
                                            235</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>设置键值对的集合。请注意，这会更改任何现有属性并添加新属性（它不会删除任何现有属性）。</p>
                                </div>

                                <table class="params">
                                    <thead>
                                        <tr>
                                            <th>Name</th>

                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <tr class="">
                                            <td class="name"><code>values</code></td>

                                            <td class="type">
                                                <span class="param-type">Object.&lt;string, *></span>
                                            </td>

                                            <td class="description last">
                                                <p>Values.</p>
                                            </td>
                                        </tr>

                                        <tr class="">
                                            <td class="name"><code>silent</code></td>

                                            <td class="type">
                                                <span class="param-type">boolean</span>

                                                | undefined
                                            </td>

                                            <td class="description last">
                                                <p>在不触发事件的情况下进行更新。</p>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                                <dl class="details"></dl>
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="setSize"></div>
                                    <h4 class="name">setSize<span class="signature">(size)</span></h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L1661">line
                                            1661</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>设置此地图的大小。</p>
                                </div>

                                <table class="params">
                                    <thead>
                                        <tr>
                                            <th>Name</th>

                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <tr class="">
                                            <td class="name"><code>size</code></td>

                                            <td class="type">
                                                <span class="param-type"><a
                                                        href="module-ol_size.html#~Size">Size</a></span>
                                                |

                                                <span class="param-type">undefined</span>
                                            </td>

                                            <td class="description last">
                                                <p>DOM 中地图的大小（以像素为单位）。</p>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                                <dl class="details"></dl>
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="setTarget"></div>
                                    <h4 class="name">
                                        setTarget<span class="signature">(<span class="optional">target</span>)</span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L1672">line
                                            1672</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>设置要将地图渲染到的目标元素。</p>
                                </div>

                                <table class="params">
                                    <thead>
                                        <tr>
                                            <th>Name</th>

                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <tr class="">
                                            <td class="name"><code>target</code></td>

                                            <td class="type">
                                                <span class="param-type">HTMLElement</span>
                                                |

                                                <span class="param-type">string</span>

                                                | undefined
                                            </td>

                                            <td class="description last">
                                                <p>呈现地图的元素或 id</p>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                                <dl class="details"></dl>
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="setView"></div>
                                    <h4 class="name">setView<span class="signature">(view)</span></h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L1685">line
                                            1685</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>设置此地图的视图。</p>
                                </div>

                                <table class="params">
                                    <thead>
                                        <tr>
                                            <th>Name</th>

                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <tr class="">
                                            <td class="name"><code>view</code></td>

                                            <td class="type">
                                                <span class="param-type"><a
                                                        href="module-ol_View-View.html">View</a></span>
                                                |

                                                <span class="param-type">Promise&lt;<a
                                                        href="module-ol_View.html#~ViewOptions">ViewOptions</a>></span>
                                            </td>

                                            <td class="description last">
                                                <p>控制此地图的视图。也可以传递一个解析为构造视图选项的 promise。这种替代方法允许由源或加载视图相关元数据的其他组件解析视图属性。
                                                </p>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                                <dl class="details"></dl>
                            </dd>

                            <dt class="">
                                <div class="nameContainer inherited">
                                    <div class="anchor" id="un"></div>
                                    <h4 class="name">
                                        un<span class="signature">(type, listener)</span>

                                        <span class="inherited"><a
                                                href="module-ol_Observable-Observable.html#un">inherited</a></span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js">Observable.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js#L173">line
                                            173</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>取消侦听特定类型的事件。</p>
                                </div>

                                <table class="params">
                                    <thead>
                                        <tr>
                                            <th>Name</th>

                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <tr class="">
                                            <td class="name"><code>type</code></td>

                                            <td class="type">
                                                <span class="param-type">string</span>
                                                |

                                                <span class="param-type">Array.&lt;string></span>
                                            </td>

                                            <td class="description last">
                                                <p>事件类型或事件类型的数组。</p>
                                            </td>
                                        </tr>

                                        <tr class="">
                                            <td class="name"><code>listener</code></td>

                                            <td class="type">
                                                <span class="param-type">function</span>
                                            </td>

                                            <td class="description last">
                                                <p>The listener function.</p>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                                <dl class="details"></dl>
                            </dd>

                            <dt class="">
                                <div class="nameContainer inherited">
                                    <div class="anchor" id="unset"></div>
                                    <h4 class="name">
                                        unset<span class="signature">(key, <span class="optional">silent</span>)</span>

                                        <span class="inherited"><a
                                                href="module-ol_Object-BaseObject.html#unset">inherited</a></span>
                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js">Object.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js#L259">line
                                            259</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>取消设置属性。</p>
                                </div>

                                <table class="params">
                                    <thead>
                                        <tr>
                                            <th>Name</th>

                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                        <tr class="">
                                            <td class="name"><code>key</code></td>

                                            <td class="type">
                                                <span class="param-type">string</span>
                                            </td>

                                            <td class="description last">
                                                <p>键名称。</p>
                                            </td>
                                        </tr>

                                        <tr class="">
                                            <td class="name"><code>silent</code></td>

                                            <td class="type">
                                                <span class="param-type">boolean</span>

                                                | undefined
                                            </td>

                                            <td class="description last">
                                                <p>未设置而不触发事件。</p>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>

                                <dl class="details"></dl>
                            </dd>

                            <dt class="">
                                <div class="nameContainer">
                                    <div class="anchor" id="updateSize"></div>
                                    <h4 class="name">updateSize<span class="signature">()</span></h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js">Map.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Map.js#L1703">line
                                            1703</a>
                                    </div>
                                </div>
                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>强制重新计算地图视口大小。当第三方代码更改地图视区的大小时，应调用此函数。</p>
                                </div>

                                <dl class="details"></dl>
                            </dd>
                        </dl>
                    </article>
                </section>
            </div>
        </div>
    </div>
    <script>
        prettyPrint();
    </script>
    <script src="scripts/linenumber.js"></script>
    <script src="scripts/main.js"></script>
</body>

</html>